/**
 * Created by mash on 2020/12/23
 */
const InjectVariableCss = require('./webpack-pulgin')
module.exports = {
  productionSourceMap: false,
  outputDir: 'target/dist',
  assetsDir: 'assets',
  lintOnSave: false,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://106.52.245.59:80',
      },
    },
  },
  configureWebpack: {
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          use: 'ts-loader',
          exclude: /node_modules/,
        },
      ],
    },
    plugins: [
      new InjectVariableCss({
        themes:[],
        fileName: 'assets/css/theme-root-variable.[contenthash:8].css',
        isProduction: process.env.NODE_ENV === 'production'
      })
    ],
    resolve: {
      extensions: ['.js', '.vue', '.ts'],
    },

  },

}
